﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using Microsoft.Win32.SafeHandles;

namespace JasLib.Interop.Win32
{
    public static partial class WS2_32
    {
        [DllImport(Constants.ModuleNames.WS2_32, EntryPoint = "inet_addr", ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
        public static extern uint inet_addr([In, MarshalAs(UnmanagedType.LPStr)] string cp);

        [DllImport(Constants.ModuleNames.WS2_32, EntryPoint = "inet_ntoa", ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
        public static extern UINT_PTR inet_ntoa([In] IN_ADDR inaddr);
    }
}
